就順便一起參加 Leetcode 的 30天 JS挑戰吧!
Write a function createHelloWorld. It should return a new function that always returns "Hello World".
var createHelloWorld = function() {
return function(...args) {
}
};
Example 1:
Input: args = []
Output: "Hello World"
Example 2:
Input: args = [{},null,42]
Output: "Hello World"
第一天也太簡單,0難度,光速完成,明天再會!
var createHelloWorld = function() {
return function(...args) {
return "Hello World";
}
};